package be.novelfaces.component.webdriver;

import org.openqa.selenium.By;

import be.novelfaces.webdriver.BaseComponent;

public class InputText extends BaseComponent{
	
	public InputText(By compId) {
		super(compId);
	}
	
	public String getValue(){
		return getComponent().getAttribute("value");
	}
	
	public void setValue(CharSequence... value){
		getComponent().clear();
		getComponent().sendKeys(value);
	}
	
	public String getAttributeValue(String attr) {
		return getComponent().getAttribute(attr);
	}
	
}
